package com.winsdom.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @Author: 陈文平
 * @CreateTime: 2025-05-09-17:10
 * @Description: 短信模板配置类
 * @Version: 1.0
 */
@Component
@Data
@ConfigurationProperties(prefix = "notification")  /*@ConfigurationProperties从配置文件中读取数据 匹配配置文件的notification内容*/
public class SmsTemplateProperties {
    private Map<String, TemplateConfig> smsTemplates;  /*存储短信模板配置：key为模板名称、value为模板内容*/

    private String mailFrom;
//    private String smsAccessKeyId;
//    private String smsAccessKeySecret;
//    private String smsSignName;
//    private String smsTemplateCode;
    private String companyWechatName;

    @Data
    public static class TemplateConfig {
        private String templateName;  // 模板名称
        private String serviceNode;   // 业务节点
        private String templateInfo;  // 模板信息
    }

}